package com.wms.model;

import java.util.Objects;

/**
 * @author This
 * @version 1.0
 * @className Menu
 * @description TODO
 * @date 2019/7/14 15:22
 */
public class Menu {
    private Integer id;
    private String name;
    private String code;
    private String icon;
    private String url;
    private Integer pid;
    private Byte type;
    private Byte status;

    public Menu() {
    }

    public Menu(Integer id, String name,String code, String icon, String url, Integer pid, Byte type, Byte status) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.icon = icon;
        this.url = url;
        this.pid = pid;
        this.type = type;
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", icon='" + icon + '\'' +
                ", url='" + url + '\'' +
                ", pid=" + pid +
                ", type=" + type +
                ", status=" + status +
                '}';
    }
}
